@font-face {
    font-family: 'MyFont';
    src: url('./myFont.eot') format('eot'),
         url('./myFont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
.hello{
    color:red;
    font-family: 'MyFont';
    background: url('./icon.png');
}